<%@ page contentType="text/html;charset=UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>系统</title>
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<link rel="stylesheet" href="/css/style_all.css" type="text/css"
			media="screen" />
		<link rel="stylesheet" href="/css/style1.css" type="text/css"
			media="screen" />
		<link rel="stylesheet" href="/css/jquery-ui.css" type="text/css"
			media="screen" />
		<link rel="stylesheet" href="/css/jquery.wysiwyg.css" type="text/css"
			media="screen" />

		<!--Internet Explorer Trancparency fix-->
		<!--[if IE 6]>
	<script src="/js/ie6pngfix.js"></script>
    <script>
    	DD_belatedPNG.fix('#head, a, a span, img, .message p, .click_to_close, .ie6fix');
    </script>
<![endif]-->
		<script type='text/javascript' src="/js/jquery-1.4.2.min.js"></script>
		<script type='text/javascript' src="/js/jquery.js"></script>
		<script type='text/javascript' src="/js/jquery-ui.js"></script>
		<script type='text/javascript' src="/js/jquery.wysiwyg.js"></script>
		<script type='text/javascript' src="/js/custom.js"></script>
		<script type="text/javascript">
			/**
				js加载内容页面
				@param f 当前点击的<a>标签
				@param url 要加载的uri
			*/
			function loadJsp(f,url){
			$(".current").removeClass("current");
			$(f).parent().addClass("current");
			$(".jquery_tab_title").html($(f).html());
			/**
				$("#content_main").load(url);
			**/
			$("#content_frame").attr("src",url);
			}

			function changePassword(){
				 jQuery("#dialog").dialog();
				 jQuery("#dialog").dialog("open");
			}
		</script>
	</head>
	<body>

		<!-- this is the content for the dialog that pops up on window start -->

		<div id="dialog" title="修改密码">
			<s:form namespace="/control/main" action="UserManage!modifyPassword"
				method="post" onsubmit="return checkform(this)" theme="simple">
				<s:token />
				<p>
					<label style="display: inline">
						旧密码
					</label>
					<input type="password" name="oldPassword" class="input-medium" />
				</p>
				<p>
					<label style="display: inline">
						新密码
					</label>
					<input type="password" name="password" class="input-medium" />
				</p>
				<p>
					<label style="display: inline">
						重复密码
					</label>
					<input type="password" name="passwordConfirm" class="input-medium" />
				</p>
				<p>
					<input type="submit" value="提交" class="button" />
					<input type="button" class="button" value="取消" />
				</p>

			</s:form>
			<script type="text/javascript">

	function checkform(form){
	if(form.oldPassword.value==""){
		alert("旧的密码不能为空");
		return false;
	}
	if(form.password.value.length<6 || form.passwordConfirm.value.length<6){
		alert("密码的长度应大于或等于6位");
		return false;
	}
	if(form.password.value!=form.passwordConfirm.value){
		alert("您两次输入的密码不一致");
		return false;
	}
}

		
</script>
		</div>
		<div id="top">
			<div id="head">
				<h1 class="logo">
					<a href="">flexy - adjustable admin skin</a>
				</h1>
				<div class="head_memberinfo">
					<div class="head_memberinfo_logo">
					</div>
					<span class='memberinfo_span'> 当前登录: ${outlets.name }
						${user.realname } </span>

					<span class='memberinfo_span'> <a href="##"
						onclick="changePassword();">修改密码</a> </span>

					<span> <a href="##"
						onclick="if(window.confirm('您确定要退出?')) window.location='/Logoff.action';">退出</a>
					</span>
					<!-- 
					<span class='memberinfo_span2'> <a href="">1 Private
							Message recieved</a> </span>
					 -->

				</div>
				<!--end head_memberinfo-->
			</div>
			<!--end head-->
			<div id="bg_wrapper">
				<div id="main">
					<div id="content">
						<div class="content_block">
							<iframe id="content_frame" src="/control/main/welcome.action"
								allowTransparency="true" frameborder="0" width="100%"
								height="700px"
								style="border:0;background:none;padding-top:5px;overflow:visible"></iframe>
						</div>
					</div>
					<!--end content-->
				</div>
				<!--end main-->
				<s:include value="sidebar.jsp" />
			</div>
			<!--end bg_wrapper-->
			<div id="footer">
			</div>
			<!--end footer-->
		</div>
		<!-- end top -->
	</body>
</html>